package com.easyCode.exampleOne;

import com.easyCode.sqlBuilder.constants.DefaultValConstants;
import com.easyCode.sqlBuilder.constants.KeyTypeConstants;
import com.easyCode.sqlBuilder.oop.Filed;
import com.easyCode.sqlBuilder.oop.Key;
import com.easyCode.sqlBuilder.oop.Table;

import java.time.LocalDateTime;

/**
 * @author 大忽悠
 * @create 2023/1/17 22:25
 */
@Table(comment = "学生表",value = "stu")
public class Stu {
    @Key(keyType = KeyTypeConstants.PRIMARY_KEY)
    @Filed(comment = "主键id", autoIncrement = true)
    private Integer id;
    @Filed(comment = "姓名")
    private String name;
    @Filed(comment = "年龄")
    private Integer age;
    @Filed(comment = "就读大学")
    private String university;
    @Filed(comment = "主攻编程语言")
    private String language;
    @Filed(comment = "老家城市")
    private String homeCity;
    @Filed(comment = "电话号码")
    private String phoneNumber;
    @Filed(comment = "qq邮箱号码")
    private String qqEamil;
    @Filed(comment = "出生日期")
    private LocalDateTime birthTime;
    @Filed(comment = "创建时间", defaultVal = DefaultValConstants.CURRENT_TIMESTAMP)
    private LocalDateTime createTime;
    @Filed(comment = "修改时间", defaultVal = DefaultValConstants.CURRENT_TIMESTAMP)
    private LocalDateTime updateTime;
}
